﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace LandandSurvey.Controls
{
    public partial class WardItemControl : System.Web.UI.UserControl
    {
        protected void Page_Load( object sender, EventArgs e )
        {

        }

        public void Setup( County county )
        {
            lblCounty.InnerText = county.Name;
            lblWard.InnerText = county.Ward;
            lblStatus.InnerText = county.Status.ToString();
            lnkEnable.Attributes.Add( "href", "../Wards.aspx?rmid=" + county.Id );
        }
    }
}